package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.HyReviewsThumbsUpMapper;
import com.ruoyi.system.domain.HyReviewsThumbsUp;
import com.ruoyi.system.service.IHyReviewsThumbsUpService;

/**
 * 用户评论点赞Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-23
 */
@Service
public class HyReviewsThumbsUpServiceImpl implements IHyReviewsThumbsUpService 
{
    @Autowired
    private HyReviewsThumbsUpMapper hyReviewsThumbsUpMapper;

    /**
     * 查询用户评论点赞
     * 
     * @param thumbsUpId 用户评论点赞主键
     * @return 用户评论点赞
     */
    @Override
    public HyReviewsThumbsUp selectHyReviewsThumbsUpByThumbsUpId(Long thumbsUpId)
    {
        return hyReviewsThumbsUpMapper.selectHyReviewsThumbsUpByThumbsUpId(thumbsUpId);
    }

    /**
     * 查询用户评论点赞列表
     * 
     * @param hyReviewsThumbsUp 用户评论点赞
     * @return 用户评论点赞
     */
    @Override
    public List<HyReviewsThumbsUp> selectHyReviewsThumbsUpList(HyReviewsThumbsUp hyReviewsThumbsUp)
    {
        return hyReviewsThumbsUpMapper.selectHyReviewsThumbsUpList(hyReviewsThumbsUp);
    }

    /**
     * 新增用户评论点赞
     * 
     * @param hyReviewsThumbsUp 用户评论点赞
     * @return 结果
     */
    @Override
    public int insertHyReviewsThumbsUp(HyReviewsThumbsUp hyReviewsThumbsUp)
    {
        return hyReviewsThumbsUpMapper.insertHyReviewsThumbsUp(hyReviewsThumbsUp);
    }

    /**
     * 修改用户评论点赞
     * 
     * @param hyReviewsThumbsUp 用户评论点赞
     * @return 结果
     */
    @Override
    public int updateHyReviewsThumbsUp(HyReviewsThumbsUp hyReviewsThumbsUp)
    {
        return hyReviewsThumbsUpMapper.updateHyReviewsThumbsUp(hyReviewsThumbsUp);
    }

    /**
     * 批量删除用户评论点赞
     * 
     * @param thumbsUpIds 需要删除的用户评论点赞主键
     * @return 结果
     */
    @Override
    public int deleteHyReviewsThumbsUpByThumbsUpIds(Long[] thumbsUpIds)
    {
        return hyReviewsThumbsUpMapper.deleteHyReviewsThumbsUpByThumbsUpIds(thumbsUpIds);
    }

    /**
     * 删除用户评论点赞信息
     * 
     * @param thumbsUpId 用户评论点赞主键
     * @return 结果
     */
    @Override
    public int deleteHyReviewsThumbsUpByThumbsUpId(Long thumbsUpId)
    {
        return hyReviewsThumbsUpMapper.deleteHyReviewsThumbsUpByThumbsUpId(thumbsUpId);
    }
}
